package com.kewu.dao;

import com.kewu.bean.Fileup;
import com.kewu.utils.MybatisUtils;
import org.apache.catalina.User;
import org.apache.ibatis.session.SqlSession;
import org.testng.annotations.Test;

import java.util.List;

public class MyTest {
    @Test
    public void selectUser() {
        SqlSession session = MybatisUtils.getSession(true);
        FileUploadMapper mapper = session.getMapper(FileUploadMapper.class);
        List<Fileup> all = mapper.findAll();

        for (Fileup fileup: all){
            System.out.println(fileup);
        }
        session.close();
    }
}